<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
<script src="https://cdn.bootcss.com/vue/2.3.4/vue.js"></script>
<script src='http://cdn.jsdelivr.net/vue/1.0.26/vue.js'></script>
<div id="app">
    <button @click="getTag">获取标签内容</button>
    <h1>{{message}}</h1>
</div>
<script>
var vm = new Vue({
    el:"#app",
    data:{
        message:"我爱北京天安门"
    },
    methods:{
        getTag:function(){
           this.message='我爱我家';
           this.$nextTick(function(){
               console.log(document.querySelector('h1').innerHTML)
           })
        }
    }
});
</script>
</body>
</html>